import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import goodsCategory from './goodsCategory/goodsCategory';
import home from './home/home';
import search from './search/search.js'
import goodsdetail from './goodsdetail/goodsdetail.js'
import shopcart from './shopcart/shopcart.js'
import register from './register/register.js'
import login from './login/login.js'
import orderAndPay from './orderAndPay/orderAndPay.js'

export default new Vuex.Store({
    modules: {
        goodsCategory,
        home,
        search,
        goodsdetail,
        shopcart,
        register,
        login,
        orderAndPay
    }
});